#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

void testGetCost(int cardNumber){
	int r = getCost(cardNumber);
	int s = getCost(cardNumber + 1);
	printf("orig: %d, n: %d, n+1: %d\n", cardNumber, r, s);
}

int main(){
	int numTests = 2000;
	printf ("Testing getcost.\n");

	printf ("RANDOM TESTS.\n");

  	SelectStream(2);
  	PutSeed(3);

  	for (int n = 0; n < numTests; n++) {
		int p = floor((Random() * 28));
    	testGetCost(p);
  	}

  	printf ("(Ran %d tests)\nALL TESTS OK\n");

  	exit(0);

}

